<!doctype html>
<html lang="en">

	<head>
		<meta charset="UTF-8" />
		<title>77代购网</title>
		<link rel="stylesheet" href="<?php echo $this->url->getBaseUri() ?>public/front/css/common.css" />
		<link rel="stylesheet" href="<?php echo $this->url->getBaseUri() ?>public/front/css/index.css" />
		<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/js/common/jquery_min.js"></script>
	</head>

	<body>
		<!--头部样式开始-->
     <?php $this->partial('common/banner');?>
		<!--头部样式结束-->
		<!--#########################################################################-->
		<!--轮播样式开始-->
		<div id="lunbo">
			<div class="lunbo_all">
				<div class="lunbo_img">
					<img src="<?php echo $this->url->getBaseUri() ?>public/front/img/index/left_link1.jpg" />
					<img src="<?php echo $this->url->getBaseUri() ?>public/front/img/index/left_link2.png" />
					<img src="<?php echo $this->url->getBaseUri() ?>public/front/img/index/left_link3.jpg" />
				</div>
				<div class="lunbo_lunbo">
					<ul>
						<li><img src="<?php echo $this->url->getBaseUri() ?>public/front/img/index/home_banner.jpg" /></li>
					</ul>
				</div>
				<div class="lunbo_login">
					<div class="lunbo_login_login">登陆</div>
					<div class="lunbo_login_reject">快速注册</div>
					<div class="login">
						<form id="frm1" action="" method="post">
							<table>
								<tr>
									<td>手机号:</td>
									<td>
										<input type="text" name="tel"/>
									</td>
								</tr>
								<tr>
									<td>密 码：</td>
									<td>
										<input type="password" name="pwd"></td>
								</tr>
								<tr>
									<td>验证码:</td>
									<td>
										<input type="text" name="code"/> 
										<img src="<?php echo $this->url->getBaseUri() ?>Login/code" id="code" onclick="this.src=this.src+'?'+Math.random()"/></td>
								</tr>
							</table>
						</form>
						<span id="button1">登陆</span>
					</div>
					<div class="reject">
						<form id="frm2" action="" method="post">
							<table>
								<tr>
									<td>手机号码:</td>
									<td>
										<input type="text" name="tel"/>
									</td>
								</tr>
								<tr>
									<td>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</td>
									<td>
										<input type="password" name="pwd"/></td>
								</tr>
								<tr>
									<td>确认密码:</td>
									<td>
										<input type="password" name="repwd"/></td>
								</tr>
							</table>
						</form>
						<span id="button2">立即注册</span>
					</div>
				</div>
			</div>
		</div>
		<!--轮播样式开始-->

		<div id="ad_img">
			<img src="<?php echo $this->url->getBaseUri() ?>public/front/img/index/banner_middle.jpg" />
		</div>
		<!--商品列表页面开始-->
		<div id="goods">
			<div class="goods_1">
				<div class="goods_title">
					<ul>
						<li><a href="#" class="a_color">仓位购买</a></li>
						<?php if($areas) foreach ($areas as $area) {?>
						<li><a href="#" id='<?php echo $area->id?>'><?php echo $area->name ?></a></li>
						<?php }?>
					</ul>
				</div>

				<div class="goods_goods">
					<ul>
					<?php if($bins) foreach ($bins as $bin) {?>
						<li>
							<a href="<?php echo $this->url->get('Goods')?>/goodsdetails">
								<img src="<?php echo $this->url->getBaseUri() ?>public/front/img/goods/4c608bf7194fcfa4dbb0ef8112d04951.jpg" />
								<span><?php echo $bin->getTranstype()->name?></span>
								<span><?php echo $bin->price?><i>(￥:6999.00)</i></span>
							</a>
						</li>
					<?php }?>
					</ul>

				</div>
				<div class="goods_title">
					<ul>
						<li 
				   style=
				   "background-color:#FC717D ;
					float: left;
					font-size: 20px;
					font-weight: bold;
					line-height: 30px;
					margin-left: 30px;
					border-radius: 13px;">
	<a href="#" class="a_color">新品代购</a></li>
						<li><a href="#">瓜子</a></li>
						<li><a href="#">花生</a></li>
						<li><a href="#">啤酒</a></li>
						<li><a href="#">饮料</a></li>
						<li><a href="#">火腿肠</a></li>
					</ul>
				</div>
				<!---->
				<div class="goods_goods">
					<ul>
						<li>
							<a href="#">
								<img src="<?php echo $this->url->getBaseUri() ?>public/front/img/goods/4c608bf7194fcfa4dbb0ef8112d04951.jpg" />
								<span>普通空运</span>
								<span>￥:2999.00<i>(￥:6999.00)</i></span>
							</a>
						</li>
						<li>
							<a href="#">
								<img src="<?php echo $this->url->getBaseUri() ?>public/front/img/goods/4c608bf7194fcfa4dbb0ef8112d04951.jpg" />
								<span>敏感空运</span>
								<span>￥:2999.00<i>(￥:6999.00)</i></span>
							</a>
						</li>
						<li>
							<a href="#">
								<img src="<?php echo $this->url->getBaseUri() ?>public/front/img/goods/4c608bf7194fcfa4dbb0ef8112d04951.jpg" />
								<span>普通海运</span>
								<span>￥:2999.00<i>(￥:6999.00)</i></span>
							</a>
						</li>
						
					</ul>

				</div>
			</div>
		</div>
		<!--            -->

	</body>

</html>
<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/js/index/index.js"></script>

<script type="text/javascript">
$(function(){
    
    $('#button1').click(function(){
      var url = "<?php echo $this->url->getBaseUri() ?>Login/loginok"; 
      $("#frm1").prop("action", url);
      $("#frm1").submit();
    });

    $('#button2').click(function(){
      var url = "<?php echo $this->url->getBaseUri() ?>Register/registerok"; 
      $("#frm2").prop("action", url);
      $("#frm2").submit();
    });

  })	
</script>